import React from 'react'
import ReactDOM from 'react-dom'
import { Router, Route, IndexRoute, hashHistory, withRouter } from 'react-router'
import Login from './src/components/user/login'

const App = React.createClass({
  render() {
    return (
      <div>{React.cloneElement(this.props.children, this.props)}</div>
    )
  }
})

const routes = (
  <Route path="/" component={App}>
    <IndexRoute component={Login} />
  </Route>
)

ReactDOM.render(
  <Router history={hashHistory} routes={routes} />,
  document.querySelector('#app')
)